"use strict";
const electron = require("electron");
const index = require("@electron-toolkit/index");
const api = {};
if (process.contextIsolated) {
    try {
        electron.contextBridge.exposeInMainWorld("electron", index.electronAPI);
        electron.contextBridge.exposeInMainWorld("api", api);
    } catch (error) {
        console.error(error);
    }
} else {
    window.electron = index.electronAPI;
    window.api = api;
}
